package mypackage.bean;

/**
 * @author YH925
 * @create 2021/12/9 22:53
 */
public class HistoryOrders {
    private int id;
    //关联商品
    private String goodsId;
    private Goods goods;
    //关联用户
    private int clientId;
    private Clients clients;
    private int amount;
    private double price;
    private String sendAddress;
    private String acceptAddress;
    //关联收货地址
    private int addressId;
    private Address address;

    public HistoryOrders() {
    }

    public HistoryOrders(int id, String goodsId, Goods goods, int clientId, Clients clients, int amount, double price, String sendAddress, String acceptAddress, int addressId, Address address) {
        this.id = id;
        this.goodsId = goodsId;
        this.goods = goods;
        this.clientId = clientId;
        this.clients = clients;
        this.amount = amount;
        this.price = price;
        this.sendAddress = sendAddress;
        this.acceptAddress = acceptAddress;
        this.addressId = addressId;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Clients getClients() {
        return clients;
    }

    public void setClients(Clients clients) {
        this.clients = clients;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
    }

    public String getAcceptAddress() {
        return acceptAddress;
    }

    public void setAcceptAddress(String acceptAddress) {
        this.acceptAddress = acceptAddress;
    }

    public int getAddressId() {
        return addressId;
    }

    public void setAddressId(int addressId) {
        this.addressId = addressId;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public int getClientId() {
        return clientId;
    }

    public void setClientId(int clientId) {
        this.clientId = clientId;
    }

    @Override
    public String toString() {
        return "HistoryOrders{" +
                "id=" + id +
                ", goodsId='" + goodsId + '\'' +
                ", goods=" + goods +
                ", clientId=" + clientId +
                ", clients=" + clients +
                ", amount=" + amount +
                ", price=" + price +
                ", sendAddress='" + sendAddress + '\'' +
                ", acceptAddress='" + acceptAddress + '\'' +
                ", addressId=" + addressId +
                ", address=" + address +
                '}';
    }
}
